package org.lejos.example;

// MotorEx1.java

import gin.and.tonic.*;

public class MotorEx1
{
  MotorEx1()
  {
    NxtRobot robot = new NxtRobot();
    Motor motA = new Motor(MotorPort.A);
    Motor motB = new Motor(MotorPort.B);
    robot.addPart(motA);
    robot.addPart(motB);
    motA.forward();
    motB.forward();
    Tools.delay(1000);
    robot.exit();
  }

  public static void main(String[] args)
  {
    new MotorEx1();
  }
}
